<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <title>首页</title>
  </head>
  <body>
    <button>点击获取</button>
    <div></div>
    <!-- <img src="" /> -->
    <script>
      const btn = document.querySelector("button");
      btn.onclick = function () {
        axios
          .request({
            // url: "http://pvp.qq.com/web201605/js/herolist.json",
            // url: "https://api.wer.plus/api/mowal",
            url: "https://api.52vmy.cn/api/img/tu/pc",
            methods: "get",
            params: {},
          })
          .then((v) => {
            console.log(v.data);
          });
      };
    </script>
  </body>
</html>
